/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.giant.entities;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author taticay
 */
@Entity
@Table(name = "w_type_claim_img")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "WTypeClaimImg.findAll", query = "SELECT w FROM WTypeClaimImg w"),
    @NamedQuery(name = "WTypeClaimImg.findByIdTypeClaimImg", query = "SELECT w FROM WTypeClaimImg w WHERE w.idTypeClaimImg = :idTypeClaimImg"),
    @NamedQuery(name = "WTypeClaimImg.findByDescription", query = "SELECT w FROM WTypeClaimImg w WHERE w.description = :description")})
public class WTypeClaimImg implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(name = "id_type_claim_img")
    private Integer idTypeClaimImg;
    @Basic(optional = false)
    @NotNull
    @Size(min = 1, max = 50)
    @Column(name = "description")
    private String description;

    public WTypeClaimImg() {
    }

    public WTypeClaimImg(Integer idTypeClaimImg) {
        this.idTypeClaimImg = idTypeClaimImg;
    }

    public WTypeClaimImg(Integer idTypeClaimImg, String description) {
        this.idTypeClaimImg = idTypeClaimImg;
        this.description = description;
    }

    public Integer getIdTypeClaimImg() {
        return idTypeClaimImg;
    }

    public void setIdTypeClaimImg(Integer idTypeClaimImg) {
        this.idTypeClaimImg = idTypeClaimImg;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (idTypeClaimImg != null ? idTypeClaimImg.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof WTypeClaimImg)) {
            return false;
        }
        WTypeClaimImg other = (WTypeClaimImg) object;
        if ((this.idTypeClaimImg == null && other.idTypeClaimImg != null) || (this.idTypeClaimImg != null && !this.idTypeClaimImg.equals(other.idTypeClaimImg))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.giant.entities.WTypeClaimImg[ idTypeClaimImg=" + idTypeClaimImg + " ]";
    }
    
}
